
<template>
  <el-breadcrumb separator="/">
  <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
  <el-breadcrumb-item>文章列表</el-breadcrumb-item>
  </el-breadcrumb>
  
  


</template>

<script>
export default {
  created(){
       this. getPostList()
  },
  data(){
      return{
        postList:[]
      }
  },
    methods:{
      // 获取数据
      async getPostList(){
        const res = await this.$axios.get('post',{
          params:{
            pageIndex:this.pageIndex,
            pageSize:this.pageSize
          }
        })
        console.log('文章列表',res.data);
        // 存值
        this.postList=res.data.data
      }
    }
}
</script>

<style>

</style>